package org.yoshiori.lingr;

import org.yoshiori.lingr.api.Message;
import org.yoshiori.lingr.bot.LingrBot;
import org.yoshiori.lingr.bot.utils.SimpleObserver;

public class Sample {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		LingrBot bot = new LingrBot("example_bot", "yoshiori_bot", "86f98e18c21048c099cf07ee6c250f1e");
		bot.addListener(new SimpleObserver() {
			@Override
			public String say(Message message) {
				return message.getNickname() + " say:" + message.getText();
			}
		});
		bot.start();
	}
}